﻿//JumbotCms_4.1 Final
using System;
using System.Data;
using System.IO;
using System.Web;
using System.Web.UI.WebControls;
using JumbotCms.Common;
namespace JumbotCms.Modules.Version.AdminSource
{
    public partial class _proof : JumbotCms.API.AdminCenter
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //通过ccid传频道ID
            ChannelId = Str2Str(q("ccid"));
            id = Str2Str(q("id"));
            Admin_Load(ChannelId + "-04", "html", true);
            string sourceid = Str2Str(q("sourceid"));
            if (sourceid == "0")
            {
                FinalMessage("请不要修改地址栏参数!", site.Dir, 0, 8);
                Response.End();
            }
            doh.Reset();
            doh.ConditionExpress = "id=" + sourceid + " and State=2";
            string downUrl = doh.GetValue("jcms_module_version_source", "DownUrl1").ToString();
            //如果地址不为空
            if (downUrl != "")
                Response.Redirect(downUrl);
            else
                FinalMessage("参数不正确!", site.Dir, 0, 8);
        }
    }
}
